#!/bin/bash
# Zaitan Module - Cafeteira Install
# Zaitan Team <http://code.google.com/p/zaitan/>

RMOD_ENGINE='1.0'
RMOD_CATEGORY='Software'
RMOD_SUBCATEGORY='Developed'
RMOD_NAME='Cafeteira'
RMOD_AUTHOR='Zaitan Team'
RMOD_VERSION='1.09'
RMOD_UPDATE_URL='http://code.google.com/p/zaitan/'



# Install Cafeteira


echo Running $RMOD_NAME...
#/usr/lib/zaitan/modulo/mod-checkInstall


cd /usr/share/zaitan
wget -c http://packzaitan.googlecode.com/svn/trunk/packages/cafeteira.jar
chown -R $USER cafeteira.jar
cp cafeteira.jar /usr/local/bin/


echo "[Desktop Entry]
      Version=1.0
      Encoding=UTF-8
      Name=Cafeteira
      Type=Application
      Terminal=false
      Icon[pt_BR]=/usr/bashare/pixmaps/gnome-mdi.png
      Name[pt_BR]=Cafeteira
      Exec=java -jar /usr/local/bin/cafeteira.jar
      Icon=/usr/bashare/pixmaps/gnome-mdi.png
      GenericName[pt_BR]= " > /home/$USER/Desktop/Cafeteira.desktop
      chown -R $USER.$USER /home/$USER/Desktop/Cafeteira.desktop



sleep 2
echo $RMOD_NAME Finibashed...

##Logs
echo $RMOD_NAME-$RMOD_VERSION | tee -a /usr/share/zaitan/logs
/usr/lib/zaitan/modulo/mod-logs
##

exit 0

